package com.fengniu.ejb.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "User2CategoryTable", schema = "FENGNIU", uniqueConstraints = {})
//@Cache (usage=CacheConcurrencyStrategy.TRANSACTIONAL)
public class User2Category extends GeneRelation implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 52648133805042234L;

	@ManyToOne
	User user;

	@ManyToOne
	Category category;

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
